
<div id="isi">
    <div class="atas"></div>
    <div class="tengah">
        <div id="isidalam">
            <div id="omenu">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" id="menuo">
                    <tr>
                        <td width="182"><a href="<?php echo base_url() . "itcourse/itcourse_con/overview/" . $pelatihan['KODE_PELATIHAN'] ?>" class="over">&nbsp;</a></td>
                        <td width="181"><a href="#" class="syl">&nbsp;</a></td>
                        <td>&nbsp;</td>
                        <td width="229"><a href="#" class="daf">&nbsp;</a></td>
                    </tr>
                </table>
            </div>
            <div class="putihatas"></div>
            <div class="putihtengah">
                <?php
                if (isset($pelatihan)) {
                    echo "
					<table width='100%' border='0' cellpadding='0' cellspacing='0' id='Tabel_judul'>
                                            <tr>
                                              <td width='20%' class='kodeaja myd'>" . $pelatihan['KODE_PELATIHAN'] . "</td>
                                              <td width='80%' class='pertama'>
                                                                            <p class='judulSeries myd'>" . $pelatihan['JENIS'] . " | " . $pelatihan['SERI_PELATIHAN'] . "</p>
                                                <p class='judulpelatihan myd'>" . $pelatihan['NAMA_PELATIHAN'] . "</p>
                                                                            <p class='judulSeries myd'>" . $pelatihan['CHAPTER_TOTAL'] . " CHAPTER | " . $pelatihan['JAM_TOTAL'] . " JAM</p>
                                                                      </td>
                                            </tr>
                                        </table>
                                        
                                                ";

                    if ($pelatihan['CHAPTER_TOTAL'] > 0) {
                        for ($i = 0; $i < count($pelatihan['TOPIK']); $i++) {
                            echo "
                                                        <div class='sisir'>
                                                                <p >
                                                            <span class='chapter'>Chapter " . ($i + 1) . "</span>
                                                            <span class='judultopik'>" . $pelatihan['TOPIK'][$i]['JUDUL_TOPIK'] . "</span>
                                                            <span class='jam'>-2Jam</span>
                                                        </p>
                                                        <ul>
                                                        ";
                            for ($j = 0; $j < count($pelatihan['TOPIK'][$i]['SUBTOPIK']); $j++) {
                                echo "
                                    <li>" . $pelatihan['TOPIK'][$i]['SUBTOPIK'][$j] . "</li>
                                ";
                            }
                            echo "
                                    </ul>
                                        </div>
                                ";
                        }
                    }
                }
                ?>

                <div class="clear"></div>

            </div><!---end #putihtengah--->
            <div class="putihprofil_ATAS"></div>
            <div class="putihprofil_TENGAH">
                <table width="715" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr class="biasa">
                        <?php
                        if (empty($pelatihan['BROSUR'])) {
                            $pelatihan['BROSUR'] = '#';
                        }
                        ?>
                        <td class="putihprofil_BATAS" align="center" valign="middle"><a href="<?php echo $pelatihan['BROSUR'] ?>">PDF version</a></td>
                        <td class="putihprofil_BATAS" align="center" valign="middle"><a href="<?php echo base_url() ?>itcourse/itcourse_con/course_schedule/<?php echo $pelatihan['KODE_PELATIHAN'] ?>">Course Schedulle</a></td>
                        <td class="putihprofil_BATAS" align="center" valign="middle"><a href="<?php echo base_url() ?>itcourse/itcourse_con/testimonial/<?php echo $pelatihan['KODE_PELATIHAN'] ?>">Testimonial</a></td>
                        <td align="center" valign="middle"><a href="#">Class Portofolio</a></td>
                    </tr>
                </table>
            </div>	
            <div class="putihprofil_BAWAH"></div>
        </div><!---end #isidalam--->
    </div><!---end #tengah--->
</div><!---end #isi--->